package com.qingke.java.app;

import com.qingke.java.perform.Duck;
import com.qingke.java.perform.ModelDuck;
import com.qingke.java.perform.impl.FlyRocketPowered;

public class MiniDuckSimulator {
	public static void main(String[] args) {
//		Duck mallard =new MallarDuck();
//		mallard.performQuack();
//		mallard.performFly();
//		mallard.display();
		
		Duck model =new ModelDuck();
		model.performFly();
		model.setFlyBehavior(new FlyRocketPowered());
		model.performFly();
	}
}
